package repository

import (
	"context"
	"time"
)

type CacheRepo interface {
	PutIfAbsent(ctx context.Context, key, value string, expire time.Duration) (bool, error)
	Put(ctx context.Context, key, value string, expire time.Duration) error
	Get(ctx context.Context, key string) (string, error)
	Delete(ctx context.Context, key ...string) error
}
